//导入vue-router包
import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const router = new VueRouter({
  mode: "hash",
  routes: [
    { 
        path: "/",
        name: "home", 
        component: () => import("../views/Home.vue") 
    },
    {
      path: "/about",
      name: "about",
      component: () => import("../views/About.vue")
    },
  ],
});

export default router;